package study.javaee.practice.service;

import study.javaee.practice.dao.JpaProjectJoinApplyDAO;
import study.javaee.practice.entity.JpaProjectJoinApply;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import study.javaee.practice.dao.JpaProjectJoinApplyDAO;

import java.util.List;

@Service
public class JpaProjectJoinApplyservice {
    @Autowired
    JpaProjectJoinApplyDAO pjadao;

    public JpaProjectJoinApply save(JpaProjectJoinApply p){
        return pjadao.save(p);
    }

    public List<Object> getbyUserid(int uid) { return pjadao.findByUserId(uid); }
}
